//设置页面
//点击安全退出,需要传手机号
var token = localStorage.getItem('tok');
$('.btn').click(function(){
    $.ajax({
        type: "POST",
        url: $host+'/api/open/out',
        async: true,
        dataType:'json',
        data:{
            token:token,
            phone:$.cookie('phone'),
        },
        success: function(result){
            if(result.status===900000){
                window.location.href='index.html?token='+token
            }
        },
        error:function(){
            console.log('获取接口错误');
        }
    });
})
//点击返回
$('.szfh').click(function(){
    window.location.href="gerenzx.html?token="+token;
})